﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProyectoHCI
{
    public partial class CargarPreguntas : Form
    {
        public NuevaPartidaGrupal nuevaPartidaGrupal;
        public CargarPreguntas(NuevaPartidaGrupal npg)
        {
            InitializeComponent();
            nuevaPartidaGrupal = npg;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            nuevaPartidaGrupal.Enabled = true;
            this.Dispose();
        }
        private void agregar(object sender, EventArgs e)
        {
            (new Aviso(this, "Pregunta Agregada Exitosamente!")).Visible = true;
            //(new PreguntaAgregadaExitosamente(this)).Visible = true;
            this.Enabled = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            (new Aviso(nuevaPartidaGrupal, "Preguntas Agregadas a la Partida")).Visible = true;
            nuevaPartidaGrupal.Enabled = false;
            this.Dispose();

        }
    }
}
